

FOR NEXT LOOP INFO: REV.c

The FOR/NEXT loop inside IDIOT Compiler is VERY strict.  However if done properly
allows a 12x speedup over other compilers... a worthy trade-off.

Here is how to do it:
================================================
(REGULAR MODE)

	Type  (FOR)  then type # of the first iteration
		     then type # of the last interation

	Example 	 ____1____   or   ____A____
		   	 ____10___   or   ____B____

	Then type the name of GOSUB LINE, it must have
	more than 4 charrecters in the name or line #.

	*** This means you can NOT place code inside the
	for next loop... it will create a GOSUB LINE # where
	you can now place your code that would fit inside
	this loop.  After finishing up the current line,
	create the GOSUB LINE and place the code that would
	normally go after the FOR and before NEXT.  Always
	place RETURN as the last statement in this special line.
================================================
(PARSER MODE)

	Code for FOR/NEXT Loop....

	***  :FOR A = 1 TO 10:GOSUB 4000:NEXT ***

***	You MUST have a GOSUB inside the FOR NEXT loop that
	will contain all the code inside.  You can use NUMBERS
	or VARIABLES as the counters and not.  ***

	Sometime later, please remember to create a
	LINE 4000 (whatever the name) and place the code
	inside it.  RETURN has to be the last statement, but
	DOES not have to be on the exact same line number	
	stated in the above code... EXAMPLE 4000, 4001, 4002 RETURN (ect).

	*Also of note, you can place ANY line number inside the PARSER
	mode, and is not restricted to 4 or more digit numbers.*
================================================
STEP CAPABILITY
	As a FOR/NEXT code loop must be inside a GOSUB specific line, the
	STEP capability is also slightly different.  Make (STEP X) the
	last statment in the FOR/NEXT loop gosub. Example below.

	10    FOR A=1 TO 10:GOSUB 3000:NEXT
	3000  C=C+1:PRINT C:STEP 2:RETURN
	
	STEP value can not be 1, 0, or negative.  Steps below 2 will
	automatically be ignored by the compiler and no code will be
	generated.
================================================

	
	
